lcPlineGetDist Home

Retrieves a point on a polyline, nearest to given off-curve point.

 double lcPlineGetDist (
   HANDLE hPline,
   double X,
   double Y,
   double* pX2,
   double* pY2,
   double* pDist
 );

Parameters
hPline
  Handle to a polyline object.
X Y
  Off-curve point.
pX2 pY2
  Pointers to variables that will receive coordinates of the found on-curve point (which is nearest to X,Y)
pDist
  Pointer to variable that will receive the distance from beginning of a polyline to found point.

Return Value

  Distance between given point (X,Y) and found point (X2,Y2).

See Also

  Code sample,   lcPlineGetPoint